<!DOCTYPE html>
	<head>
		<meta charset="UTF-8" />
		<title>用户表单</title>
		
		<link rel="stylesheet" href="../../../js/plugins/bootstrap/css/bootstrap.min.css">
		<link rel="stylesheet" href="../../../js/plugins/bootstrapValidator/bootstrapValidator.min.css"/>
		
		<script type="text/javascript" src="../../../js/plugins/bootstrap/js/bootstrap.min.js"></script>
	   	<script type="text/javascript" src="../../../js/plugins/bootstrapValidator/bootstrapValidator.min.js"></script>
		<link rel="stylesheet" href="../../../js/plugins/layui-v2.4.5/layui/css/layui.css" />
		<link rel="stylesheet" href="../../../css/reset.css" />
		<link rel="stylesheet" href="../../../css/index.css" />
		<link rel="stylesheet" href="../../../font/iconfont.css" />
		<script src="../../../js/jquery-3.3.1.min.js"></script>
		<script src="../../../js/plugins/layui-v2.4.5/layui/layui.js"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				$('#defaultForm').bootstrapValidator({
		            message: 'This value is not valid',
		            feedbackIcons: {
		                valid: 'glyphicon glyphicon-ok',
		                invalid: 'glyphicon glyphicon-remove',
		                validating: 'glyphicon glyphicon-refresh'
		            },
		            fields: {
		            	Name: {
		                    validators: {
		                        notEmpty: {
		                            message: '菜单名不能为空！'
		                        }
		                    }
		                },url: {
		                    validators: {
		                        notEmpty: {
		                            message: '菜单url不能为空！'
		                        }
		                    }
		                }
		            }
		        }).on('success.form.bv', function(e) {
		            // Prevent form submission
		            e.preventDefault();

		            // Get the form instance
		            var $form = $(e.target);

		            // Get the BootstrapValidator instance
		            var bv = $form.data('bootstrapValidator');

		            // Use Ajax to submit form data
		            $.post($form.attr('action'), $form.serialize(), function(result) {
		            	parent.layui.table.reload('dg_user');
						window.parent.layer.msg(result.msg);
						closeLayer();
		            }, 'json');
		        });
			});
		</script>
<style>
 ::-webkit-scrollbar-thumb {
	  background:#a2a2a2; 
	  border-radius: 10px;
	  height:50%;
	}
	::-webkit-scrollbar{width:6px;}
.layui-form-label{
	text-align:left
}
.kb-form-container{
	padding-left:20px;
}
.layui-form-item .layui-inline{
	margin-right:0px
}
</style>
	</head>
	<body>
		<div class="building-details" id="building-details">
	    	<div class="layui-tab-content">
    			<form id="defaultForm" th:method="post" th:action="@{/common/modProcessnode/save}">
    				<input type="hidden" id="fkProcess" name="fkProcess" th:value="${id}" >
	    			<div class="form-modal">
						<div class="form-wrap clearfix">
							<div class="col-md-6 col-sm-6 col-xs-6">
								<div class="form-group">
								    <label for="">节点名称</label>
								    <input type="text" id="nodename" name="nodename" class="form-control" placeholder="">
								</div>
							</div>
							<div class="col-md-6 col-sm-6 col-xs-6">
								<div class="form-group">
								    <label for="">节点类型</label>
								    <select id="nodetype" name="nodetype" class="form-control selectpicker">
								   		<option value="1">业务</option>
								   		<option value="2">职能</option>
								   		<option value="3">主管</option>
								   	</select>
								</div>
							</div>
							<div class="col-md-6 col-sm-6 col-xs-6">
								<div class="form-group">
								    <label for="">参与人</label>
								    <input type="text" name="partUserid" id="partUserid" class="form-control"  placeholder="点击选择参与人">
								</div>
							</div>
							<div class="col-md-6 col-sm-6 col-xs-6">
								<div class="form-group">
								    <label for="">会签模式</label>
								    <select id="iscountersign" name="iscountersign" class="form-control selectpicker">
								   		<option value="0">会签</option>
								   		<option value="1">普通</option>
								   	</select>
								</div>
							</div>
							<div class="col-md-6 col-sm-6 col-xs-6">
								<div class="form-group">
								    <label for="">节点顺序</label>
								    <input type="text" name="nodeindex" id="nodeindex" class="form-control" >
								</div>
							</div>
							
							<div class="col-md-12 col-sm-12 col-xs-12 t-center">
								<button type="submit" class="btn btn-primary float-r">保存</button>
								<button type="button" class="btn btn-default" onclick="closeLayer();">取消</button>
							</div>
							
						</div>
					</div>
				</form>
    		</div>
    	</div>
	</body>
</html>